package com.spring.nio.business.file.mapper;

import com.spring.nio.business.file.repository.dataobject.FileDo;
import com.spring.nio.business.file.repository.param.FileDalQueryParam;
import com.spring.nio.business.file.service.param.FileQueryParam;
import com.spring.nio.core.repository.repository.BaseMapperRepository;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

/**
 * 文件dao
 * @author spring
 * */
@Mapper
public interface FileRepository extends BaseMapperRepository<FileDalQueryParam, FileDo> {

    /**
     * 查询指定文件信息
     * @param fileDalQueryParam
     * @return
     */
    List<FileDo> getCurrentFileInfo(FileDalQueryParam fileDalQueryParam);

    /**
     * 查询当前文件夹下的文件
     * @param fileDalQueryParam
     * @return
     */
    List<FileDo> queryFilesBelongCurrentFolder(FileDalQueryParam fileDalQueryParam);

    /**
     * 查询文件信息
     * @param fileQueryParam
     * */
    List<FileDo> queryFileList(FileQueryParam fileQueryParam);

    /**
     * 查询文件总记录数
     * @param fileQueryParam
     * */
    Integer queryFileListSize(FileQueryParam fileQueryParam);
}
